home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000171_icon-group-sender_Fri Dec 15 16:35:42 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id eBFNXQI07849
  4.     for icon-group-addresses; Fri, 15 Dec 2000 16:33:26 -0700 (MST)
  5. Message-Id: <200012152333.eBFNXQI07849@baskerville.CS.Arizona.EDU>
  6. From: "John Sampson" <jsampson@indexes.u-net.com>
  7. To: <icon-group@cs.arizona.edu>
  8. Subject: Stepping
  9. Date: Fri, 15 Dec 2000 20:12:26 -0000
  10. X-Priority: 3
  11. X-MSMail-Priority: Normal
  12. X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
  13. Errors-To: icon-group-errors@cs.arizona.edu
  14. Status: RO
  15. Content-Length: 521
  16.  
  17. It would be useful to be able to step through an Icon program or set
  18. break-points in some simple way. I would have thought
  19.  
  20. dummy := read()
  21.  
  22. would be useful, and indeed it does step, but dummy remains null so one
  23. cannot use it to leave the program at will. If dummy acquired a value from
  24. read(), as the book leads me to expect, I could write
  25.  
  26. if dummy == "q" then stop
  27.  
  28. I don't understand why dummy is null - is cessation of keyboard input deemed
  29. to be EOF, thus causing the procedure to fail?
  30.  
  31. Regards
  32.  
  33. _John Sampson_
  34.  
  35.